package com.amit.Basic_Simple_Program;

import java.util.Scanner;

public class Pattern_Star {

	public static void main(String[] args) { 
		
		System.out.println("Please enter a row till u want to generate star pattern");
		
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int temp=n;
		
		for(int row=1;row<=n;row++)
		{
			for(int c=1;c<temp;c++)
				System.out.println(" ");
			temp--;
			for(int c=1;c<=2*row-1;c++)
			{
				System.out.println("*");
			}
			System.out.println("\n");
		}
		

	}

}
